package com.typy.www.tpay.bean.bean;

import org.json.JSONObject;

/**
 * Created by 13799 on 2018/6/15.
 */

public class BaseReturn {
//    {"code":200,"msg":"操作成功","data":""}
//    {"msg":"验证码不对！","code":906,"success":false}
    private int code;
    private String msg;
    private String message;
    private JSONObject data;
    private boolean success;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public JSONObject getData() {
        return data;
    }

    public void setData(JSONObject data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "BaseReturn{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", message='" + message + '\'' +
                ", data=" + data +
                ", success=" + success +
                '}';
    }
}
